package cn.wolfcode.service;

import cn.wolfcode.domain.Role;
import cn.wolfcode.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {

    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    PageInfo<Role> list(QueryObject qo);

    List<Role> selectByEmployeeId(Long id);

    List<String> getRoleSnByEmployeeId(Long id);
}
